package org.qs.webservice.dao.user;



import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.qs.webservice.domain.UsBookMark;
import org.springframework.stereotype.Component;

@Component
public interface UsBookMarkMapper {
	
	/**
	 * 添加书签
	 * @param usBookMark
	 * @return
	 */
	public int addBookMark(UsBookMark usBookMark);
	/**
	 * 删除书签
	 * @param usBookMark
	 * @return
	 */
	public int deleteBookMark(@Param("mark_id")Long mark_id,@Param("user_id")Long user_id);
	/**
	 * 获取书签
	 * @param book_id
	 * @param user_id
	 * @param pages
	 * @param contents
	 * @return
	 */
	public List<UsBookMark> getBookMarks(@Param("book_id")int book_id,@Param("user_id")Long user_id,@Param("pages")int pages,@Param("contents")int contents);
	/**
	 * 获取书签总数
	 * @param book_id
	 * @param user_id
	 * @param pages
	 * @param contents
	 * @return
	 */
	public int getBookMarksNum(@Param("book_id")int book_id,@Param("user_id")Long user_id);

}